<?php
class Session{
    /**
     * 
     * @param type $name
     * @param type $value
     * 
     */
    public static function set_session($name, $value){
        $_SESSION[$name] = $value;
    }
    /**
     * 
     * @param type $name
     * @return type
     * 
     */
    public static function get_session($name){
        return $_SESSION[$name];
    }
    /**
     * 
     * @param type $name
     * @param type $value
     * @param type $time
     * 
     */
    public static function set_cookie($name, $value, $time){
        setcookie($name, $value, $time);
    }
    /**
     * 
     * @param type $name
     * @return type
     * 
     */
    public static function get_cookie($name){
        return $_COOKIE[$name];
    }
    /**
     * 
     * @return type
     * 
     */
    public static function destroy(){
        return session_destroy();
    }
    
}
?>
